package com.tjf.myjetpackdemo.Decorator;

/**
 * @author: tjf
 * @date: 2023-06-07
 * @desc：
 */
public class PizzaA  extends decoratorPizza{
    Pizza pizza;

    public PizzaA(Pizza pizza) {
        this.pizza = pizza;
    }


    @Override
    public String getName() {
        return pizza.getName()+"+菠萝";
    }

    @Override
    public double getPrice() {
        return pizza.getPrice()+10;
    }


}
